﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductWC.ascx.cs"
 EnableViewState="true" Inherits="MadeInPortugalWebApplication.WebControl.ProductWC" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<section id="page">
<link href="../Style/style.css" rel="stylesheet" type="text/css" />
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
    <Triggers>
        <asp:PostBackTrigger ControlID="btnCreate" />

    </Triggers>
    <ContentTemplate>
        <style type="text/css">
            .style1
            {
                width: 100%;
            }
            .checkBoxlist input
            {
                float: right;
            }
        </style>
        <span>
            <asp:DropDownList ID="ddlType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
            </asp:DropDownList>
        </span>
       <span>
            <asp:DropDownList ID="ddlTag" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlTag_SelectedIndexChanged">
            </asp:DropDownList>
        </span>
        <span>
           <asp:DropDownList ID="ddlLanguage" runat="server">
               <asp:ListItem>English</asp:ListItem>
           </asp:DropDownList>
       </span>
        <div>
            <table class="style1">
                <tr>
                    <td rowspan="31">
                        <asp:Image ID="ImageUploaded" Height="200px" runat="server" />
                    </td>
                    <td  rowspan="31" style="width:10px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="productLabel">
                        ID</td>
                    <td>
                        &nbsp;</td>
                    <td class="style2">
                        <asp:Label ID="lblId" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr id="trPriority" runat="server">
                    <td class="productLabel">
                        Priority Base</td>
                    <td>
                        &nbsp;</td>
                    <td class="style2">
                        <span>
                            <asp:TextBox ID="tbxPriorityBase" runat="server"></asp:TextBox>
                        </span>
                    </td>
                </tr>
                <tr id="trPriorityFinal" runat="server">
                    <td class="productLabel">
                        Priority Final</td>
                    <td>
                        &nbsp;</td>
                    <td class="style2">
                        <asp:TextBox ID="tbxPriorityFinal" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr id="trPriorityDate" runat="server">
                    <td class="productLabel">
                        Priority End Date</td>
                    <td>
                        &nbsp;</td>
                    <td class="style2">
                        <asp:TextBox ID="tbxPriorityDate" runat="server"></asp:TextBox>
                        <asp:CalendarExtender ID="tbxPriorityDate_CalendarExtender" runat="server" 
                            TargetControlID="tbxPriorityDate">
                        </asp:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td class="productLabel">
                        Name
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="tbxName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="productLabel">
                        Price
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="tbxPrice" runat="server"></asp:TextBox>
                        €
                    </td>
                </tr>
                <tr>
                    <td class="productLabel">
                        Min Required
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="tbxMinReq" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="productLabel">
                        Image
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td class="style2">
                        <%--<asp:AsyncFileUpload ID="imageUpload" runat="server" 
                onuploadedcomplete="imageUpload_UploadedComplete" />--%>
                        <asp:FileUpload ID="fuImage" runat="server" />
                        <asp:Button ID="Button1" runat="server" Text="Insert Image" OnClick="Button1_Click" />
                    </td>
                </tr>
                <tr>
                    <td valign="top" class="productLabel">
                        Specifications
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="tbxSpecification" runat="server" Width="250px" Rows="6" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="top" class="productLabel">
                        Properties</td>
                    <td>
                        &nbsp;</td>
                    <td class="style2">
                        <asp:CheckBoxList ID="cbxProperties" runat="server" CssClass="checkBoxlist" 
                            TextAlign="Left" Width="143px">
                        </asp:CheckBoxList>
                    </td>
                </tr>
            </table>
        </div>
        <div id="dvProperties" runat="server">
        </div>
        <br />
        <asp:Button ID="btnCreate" runat="server" Text="Create" OnClick="btnCreate_Click" />
    </ContentTemplate>
</asp:UpdatePanel>
</section>